package com.example.conf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 会员积分记录表
 * </p>
 *
 * @author wpdcn
 * @since 2020-09-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("member_score_chg_record")
@ApiModel(value="MemberScoreChgRecordEntity对象", description="会员积分记录表")
public class MemberScoreChgRecordEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Column(comment = "主键id")
    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Column(comment = "会员id")
    @ApiModelProperty(value = "会员id")
    private String memberId;

    @Column(comment = "积分数")
    @ApiModelProperty(value = "积分数")
    private Double score;

    @Column(comment = "积分变更类型：1-增加；0-减少")
    @ApiModelProperty(value = "积分变更类型：1-增加；0-减少")
    private String type;

    @Column(comment = "积分产生途径")
    @ApiModelProperty(value = "积分产生途径")
    private String method;

    @Column(comment = "创建时间")
    @ApiModelProperty(value = "时间")
    private LocalDateTime createTime;


}
